﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PidKeyReptile.Desktop.Model
{
    [SugarTable("gatherkey")]
    public class GatherKey
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "Id")]
        public int Id { get; set; }

        /// <summary>
        /// 秘钥
        /// </summary>
        [SugarColumn(ColumnName = "ActionCode")]
        public string ActionCode { get; set; }

        /// <summary>
        /// SkuId
        /// </summary>
        [SugarColumn(ColumnName = "SkuId")]
        public string SkuId { get; set; }

        /// <summary>
        /// 剩余
        /// </summary>
        [SugarColumn(ColumnName = "ActivCount")]
        public int ActivCount { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }

        /// <summary>
        /// Sub Type
        /// </summary>
        [SugarColumn(ColumnName = "SubType")]
        public string SubType { get; set; }

        /// <summary>
        /// IsKeyType
        /// </summary>
        [SugarColumn(ColumnName = "IsKeyType")]
        public string IsKeyType { get; set; }

        /// <summary>
        /// IsRetail
        /// </summary>
        [SugarColumn(ColumnName = "IsRetail")]
        public string IsRetail { get; set; }

        /// <summary>
        /// Blocked
        /// </summary>
        [SugarColumn(ColumnName = "Blocked")]
        public string Blocked { get; set; }

        /// <summary>
        /// 错误代码
        /// </summary>
        [SugarColumn(ColumnName = "ErrorCode")]
        public string ErrorCode { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "UpTime")]
        public DateTime UpTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]
        public DateTime CreateTime { get { return DateTime.Now; } }
    }
}
